package com.fowo.api.model.product.inventory.info;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 产品库存信息 导入导出辅助模型 */
@Getter
@Setter
public class ProductInventoryInfoExcelPo {

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "默认仓库")
  private String defaultWarehouseName;

  @ExcelIgnore
  @ExcelProperty(value = "默认仓库")
  private Long defaultWarehouse;

  @Size(max = 20, message = "上架策略长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "上架策略")
  private String putaway;

  @ExcelProperty(value = "盘点周期")
  private Long stocktaking;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "是否开启批次管理")
  private String isBatch;
}
